Integrand size = 17, antiderivative size = 54 \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {3}{8} \text {arctanh}(\sin (x)) \cos (x) \sqrt {a \sec ^2(x)}-\frac {3}{8} \sqrt {a \sec ^2(x)} \tan (x)+\frac {1}{4} \sqrt {a \sec ^2(x)} \tan ^3(x) \]
[Out]
Time = 0.13 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {3738, 4210, 2691, 3855} \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {3}{8} \cos (x) \sqrt {a \sec ^2(x)} \text {arctanh}(\sin (x))+\frac {1}{4} \tan ^3(x) \sqrt {a \sec ^2(x)}-\frac {3}{8} \tan (x) \sqrt {a \sec ^2(x)} \]
[In]
[Out]
Rule 2691
Rule 3738
Rule 3855
Rule 4210
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {a \sec ^2(x)} \tan ^4(x) \, dx \\ & = \left (\cos (x) \sqrt {a \sec ^2(x)}\right ) \int \sec (x) \tan ^4(x) \, dx \\ & = \frac {1}{4} \sqrt {a \sec ^2(x)} \tan ^3(x)-\frac {1}{4} \left (3 \cos (x) \sqrt {a \sec ^2(x)}\right ) \int \sec (x) \tan ^2(x) \, dx \\ & = -\frac {3}{8} \sqrt {a \sec ^2(x)} \tan (x)+\frac {1}{4} \sqrt {a \sec ^2(x)} \tan ^3(x)+\frac {1}{8} \left (3 \cos (x) \sqrt {a \sec ^2(x)}\right ) \int \sec (x) \, dx \\ & = \frac {3}{8} \text {arctanh}(\sin (x)) \cos (x) \sqrt {a \sec ^2(x)}-\frac {3}{8} \sqrt {a \sec ^2(x)} \tan (x)+\frac {1}{4} \sqrt {a \sec ^2(x)} \tan ^3(x) \\ \end{align*}
Time = 0.09 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.59 \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {1}{8} \sqrt {a \sec ^2(x)} \left (3 \text {arctanh}(\sin (x)) \cos (x)-3 \tan (x)+2 \tan ^3(x)\right ) \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.04
method | result | size |
derivativedivides | \(-\frac {5 \sqrt {a +a \tan \left (x \right )^{2}}\, \tan \left (x \right )}{8}+\frac {3 \sqrt {a}\, \ln \left (\sqrt {a}\, \tan \left (x \right )+\sqrt {a +a \tan \left (x \right )^{2}}\right )}{8}+\frac {\tan \left (x \right ) \left (a +a \tan \left (x \right )^{2}\right )^{\frac {3}{2}}}{4 a}\) | \(56\) |
default | \(-\frac {5 \sqrt {a +a \tan \left (x \right )^{2}}\, \tan \left (x \right )}{8}+\frac {3 \sqrt {a}\, \ln \left (\sqrt {a}\, \tan \left (x \right )+\sqrt {a +a \tan \left (x \right )^{2}}\right )}{8}+\frac {\tan \left (x \right ) \left (a +a \tan \left (x \right )^{2}\right )^{\frac {3}{2}}}{4 a}\) | \(56\) |
risch | \(\frac {i \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \left (5 \,{\mathrm e}^{6 i x}-3 \,{\mathrm e}^{4 i x}+3 \,{\mathrm e}^{2 i x}-5\right )}{4 \left ({\mathrm e}^{2 i x}+1\right )^{3}}-\frac {3 \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}-i\right ) \cos \left (x \right )}{4}+\frac {3 \sqrt {\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}+i\right ) \cos \left (x \right )}{4}\) | \(117\) |
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.04 \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {1}{8} \, \sqrt {a \tan \left (x\right )^{2} + a} {\left (2 \, \tan \left (x\right )^{3} - 3 \, \tan \left (x\right )\right )} + \frac {3}{16} \, \sqrt {a} \log \left (2 \, a \tan \left (x\right )^{2} + 2 \, \sqrt {a \tan \left (x\right )^{2} + a} \sqrt {a} \tan \left (x\right ) + a\right ) \]
[In]
[Out]
\[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\int \sqrt {a \left (\tan ^{2}{\left (x \right )} + 1\right )} \tan ^{4}{\left (x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 860 vs. \(2 (42) = 84\).
Time = 0.71 (sec) , antiderivative size = 860, normalized size of antiderivative = 15.93 \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.89 \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\frac {1}{8} \, \sqrt {a \tan \left (x\right )^{2} + a} {\left (2 \, \tan \left (x\right )^{2} - 3\right )} \tan \left (x\right ) - \frac {3}{8} \, \sqrt {a} \log \left ({\left | -\sqrt {a} \tan \left (x\right ) + \sqrt {a \tan \left (x\right )^{2} + a} \right |}\right ) \]
[In]
[Out]
Timed out. \[ \int \tan ^4(x) \sqrt {a+a \tan ^2(x)} \, dx=\int {\mathrm {tan}\left (x\right )}^4\,\sqrt {a\,{\mathrm {tan}\left (x\right )}^2+a} \,d x \]
[In]
[Out]